\documentclass[paper=A4,paper=landscape,fontsize=10]{scrartcl}
\usepackage[driver=pdftex,margin=1cm]{geometry}
\usepackage[colorlinks=true,urlcolor=blue]{hyperref}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.13}
\pgfplotsset{plot coordinates/math parser=false}

\newlength\figureheight
\newlength\figurewidth
\setlength\figureheight{6cm}
\setlength\figurewidth{.35\textwidth}

\definecolor{plotcolor0}{HTML}{14CCB8}
\definecolor{plotcolor1}{HTML}{00FF53}
\definecolor{plotcolor2}{HTML}{FF4091}
\definecolor{plotcolor3}{HTML}{0046FF}
\definecolor{plotcolor4}{HTML}{CC6C14}

\begin{document}
\pagestyle{empty}
\begin{minipage}[b]{.5\textwidth}
    \Huge{\var{title}}
\end{minipage}%
\begin{minipage}[b]{.5\textwidth}
    \raggedleft
    \small
    \begin{tabular}{|lr|}
        \hline
        \blk{for item in quickrefs}
        \var{item.key} & \var{item.value} \\
        \blk{endfor}\hline
    \end{tabular}
\end{minipage}%
\vspace{1cm}
\blk{for figure in figures}
\begin{minipage}[b]{\var{1 / figures|length}\linewidth}
    \centering
    \begin{tikzpicture}
        \begin{axis}[%
            scale only axis,
            width=\var{figure.width or '\\figurewidth'},
            height=\var{figure.height or '\\figureheight'},
            xmin=\var{figure.xrange[0]}, xmax=\var{figure.xrange[1]},
            ymin=\var{figure.yrange[0]}, ymax=\var{figure.yrange[1]},
            xlabel=\var{figure.xlabel},
            ylabel=\var{figure.ylabel},
            xmajorgrids,
            ymajorgrids,
            legend entries={\var{figure|legend_entries}},
            legend style={
                at={(0.97,1.03)},
                anchor=south east,
                nodes={right, scale=0.75, transform shape},
                legend columns=2,
                column sep=1ex,
            }]
            \blk{for trace in figure.traces}
            \addplot [
                color=plotcolor\var{loop.index0},
                solid,
                thick,
                %mark=x,
                %mark options={solid}
            ]
            coordinates {\blk{for i in range(trace.x|length)}(\var{trace.x[i]},\var{trace.y[i]})\blk{endfor}};
            \blk{endfor}
            \blk{for trace in figure.axis2.traces}
            \addplot [
                color=plotcolor\var{loop.index0 + figure.traces|length},
                solid,
                %mark=x,
                %mark options={solid}
            ]
            coordinates { (0,0) };
            \blk{endfor}
        \end{axis}
        \blk{if figure.axis2.traces|length}
        \begin{axis}[
            scale only axis,
            width=\var{figure.width or '\\figurewidth'},
            height=\var{figure.height or '\\figureheight'},
            xmin=\var{figure.axis2.xrange[0]}, xmax=\var{figure.axis2.xrange[1]},
            ymin=\var{figure.axis2.yrange[0]}, ymax=\var{figure.axis2.yrange[1]},
            hide x axis,
            axis y line*=right,
            ylabel=\var{figure.axis2.ylabel},
            ylabel near ticks]
            \blk{for trace in figure.axis2.traces}
            \addplot [
                color=plotcolor\var{loop.index0 + figure.traces|length},
                solid,
                %mark=x,
                %mark options={solid}
            ]
            coordinates {\blk{for i in range(trace.x|length)}(\var{trace.x[i]},\var{trace.y[i]})\blk{endfor}};
            \blk{endfor}
        \end{axis}
        \blk{endif}
    \end{tikzpicture}

    \var{figure.caption}
\end{minipage}%
\blk{endfor}
\vfill
\blk{for cat in categories}
\begin{minipage}[t]{\var{ 0.8 / categories|length }\linewidth}
    \centering
    \scriptsize
    \textbf{\var{cat.name}}\vspace{\baselineskip}
    \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}
        \blk{for item in cat['items']}
        \var{item.key} & \var{item.value} \\
        \blk{endfor}
    \end{tabular*}
\end{minipage}\hfill%
\blk{endfor}
\end{document}
